<html>
<body>
<div aria-labelledby="test1">
MOO
</div>
<div id="test1" aria-labelledby="test2">
BROWN
</div>
<div id="test2">
COW
</div>

<label for="foo" role="none">FOO</label>
<input id="foo">
</body>
</html>